//
// Created by 孟令涛 on 24-7-15.
//
#include "GlobalVars.h"


uint32_t Y_Out_Counter = 0;  // 溢出时间增量
uint8_t Motor_Forward_Flag = 0;
uint8_t movement_state = 0;
//char bt_buffer[BT_BUFFER_SIZE];
//uint8_t bt_buffer_index = 0;
//uint8_t command_ready = 0;
uint8_t beepState = 0;


float distance = 0.0f;
RobotMode currentMode = MODE_REMOTE;  // 默认为遥控模式
float batteryVoltage = 0.0f;
uint8_t fireSensor = 0;
// 传感器状态变量
bool carControlLeft1, carControlLeft2, carControlRight1, carControlRight2;
uint8_t control_movement_state = 0;
uint16_t carControl_left_speed = 200;
uint16_t carControl_right_speed = 200;
uint8_t servo_state = Middle_SERVO;
int block_detection = 0;
uint16_t r = 0;
uint16_t g = 0;
uint16_t b = 0;
uint16_t adcValues[NOFCHANEL];
uint8_t fire_movement_state = 0;
uint8_t fire_state = 0;
